package zhongbo.javaweb.instagram.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 说明：
 *
 * @author zhongboWork
 * @version 1.0
 * @since 2021-12-20 11:45
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value = "任务信息", description = "rest 返回对象结构模型")
public class TaskFar extends BaseModel {

    @ApiModelProperty(name = "任务名称", value = "任务名称")
    private String taskName;
    @ApiModelProperty(name = "当前下载uid", value = "当前id")
    private String currentId;
    @ApiModelProperty(name = "当前任务使用的线程数量", value = "线程数量")
    private int threadSize = 8;
    @ApiModelProperty(name = "任务初始运行进度", value = "起始进度")
    private int first;
    @ApiModelProperty(name = "页面总数量", value = "页面总数")
    private int total;
    @ApiModelProperty(name = "商品总数量", value = "商品总数")
    private int itemTotal;
    @ApiModelProperty(name = "当前执行用户进度", value = "当前进度")
    private int current;
    @ApiModelProperty(name = "当前任务进度=(当前进度-起始进度)/(用户总数-起始进度)*100", value = "进度百分比")
    private double percentSuccess;
    @ApiModelProperty(name = "每个用户下载执行超时时间", value = "超时时间")
    private int timeoutExecTime;
    @ApiModelProperty(name = "当前任务使用的线程数量", value = "线程数量")
    private int runningThread;
    @ApiModelProperty(name = "当前任务是否运行中", value = "运行")
    private boolean running;
    @ApiModelProperty(name = "当前任务是否暂停中", value = "暂停")
    private boolean paused;
    @ApiModelProperty(name = "当前任务是否暂停中", value = "首次运行时间")
    private long firstExecTime;
    @ApiModelProperty(name = "最后一次运行时间,任务中途暂停/停止后再次恢复/启动的时间", value = "最后运行时间")
    private long lastExecTime;
    @ApiModelProperty(name = "最新一次运行事件触发时间", value = "最新活动时间")
    private long latestActiveTime;

}
